package com.bhs.sansonglogistics.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

public class ChatBean implements MultiItemEntity {

    public static final int TYPE_RECEIVED_TEXT = 1;
    public static final int TYPE_SENT_TEXT = 2;
    private int itemType;
    private Object face;
    private String text;

    public ChatBean(int itemType, Object face, String text) {
        this.itemType = itemType;
        this.face = face;
        this.text = text;
    }

    public ChatBean(String text) {
        this.itemType = TYPE_SENT_TEXT;
        this.text = text;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public Object getFace() {
        return face;
    }

    public void setFace(Object face) {
        this.face = face;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
